package cn.patient.pp.module.patients.framework.web.config;

import cn.patient.pp.framework.swagger.config.PatientSwaggerAutoConfiguration;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author liqingsong
 * @version 1.0
 * Create by 2025/4/13
 */
/**
 * bussiness 模块的 web 组件的 Configuration
 *
 * @author 芋道源码
 */
@Configuration(proxyBeanMethods = false)
public class BussinessWebConfiguration {
    /**
     * bussiness 模块的 API 分组
     */
    @Bean
    public GroupedOpenApi businessGroupedOpenApi() {
        return PatientSwaggerAutoConfiguration.buildGroupedOpenApi("business");
    }

    /**
     * 上报 模块的 API 分组
     */
    @Bean
    public GroupedOpenApi reportGroupedOpenApi() {
        return PatientSwaggerAutoConfiguration.buildGroupedOpenApi("report");
    }
}

